<template>
	<view class="trading">

		<!-- 固定在顶部的导航栏 -->
		<nav-bar fixed="true" @click-right="showMenu" :shadow="false">
			<view class="navBar-title">
				<view class="navBar-title-btn">购买</view>
				<view class="navBar-title-btn">出售</view>
			</view>
		 </nav-bar>
		<!-- 使用非原生导航栏后需要在页面顶部占位 -->
		<view style="height:80px;">...</view>

	</view>
</template>

<script>
	import NavBar from "../../components/uni-nav-bar.vue"
	export default {
		components: {
		    NavBar
		},
		data() {
			return {

			};
		},
		onShow () {
		},
		computed: {
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.navBar-title {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 250upx;
		margin-left: auto;
		margin-right: auto;
		border-radius: 5upx;
		border: 1upx solid #f4544d;
		overflow: hidden;
		&-btn {
			width: 125upx;
			height: 50upx;
			line-height: 48upx;
			color: #fff;
			text-align: center;
			background-color: #fff;
		}
	}
</style>
